package com.attendance.chdingtask.controller;

import com.attendance.chdingtask.config.WebLog;
import com.attendance.chdingtask.utils.common.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(value = "health", description = "健康检查", consumes = "application/json;charset=UTF-8")
@RequestMapping(value = "/health")
public class HelloController {
    @GetMapping
    @ResponseBody
    @WebLog(description = "健康检查")
    @ApiOperation(value = "健康检查", notes = "{}")
    public Result helthCheck(){
        return Result.success("检查结果：健康检查通过！");
    }
}
